package D12_19z.BU_3;

import org.apache.commons.beanutils.BeanUtils;

import java.util.HashMap;
import java.util.Map;

public class MainApp {
    public static void main(String[] args) throws Exception{
        Map<String,String[]> map = new HashMap<>();
        map.put("loginName", new String[]{"zhangsan"});
        map.put("password",new String[]{"888888"});
        map.put("sex",new String[]{"男"});
        map.put("edu",new String[]{"专科"});
        map.put("hobby",new String[]{"读书","唱歌","旅游"});
        User user = new User();
        BeanUtils.populate(user,map);
        System.out.println(user);
    }
}
